<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMainboradSettingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mainborad_settings', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('mainborad_id')->default(0)->comment('主板ID');
            $table->string('title', 30)->default('')->comment('配置项标题');
            $table->string('key', 20)->default('')->comment('配置字段');
            $table->tinyInteger('type')->default(0)->comment('数据类型1字符2数值3时间点4时间段');
            $table->string('value', 100)->default('')->comment('配置数据');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mainborad_settings');
    }
}
